'use strict';

const Service = require('egg').Service;

class IndexService extends Service {

  async login() {
    const { app, config } = this;
    const token = await app.jwt.sign({ foo: 'bar' }, config.jwt.secret);
    return token;
  }
}

module.exports = IndexService;
